def sumPower(*num, power):
    sum = 0
    for i in num:
        sum += i ** power
    return sum
print(sumPower(1, 2, power=3))
